package com.zoro.barn.commons.db.autopage;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhaoxingwu
 */
@ConfigurationProperties("barn.pager.key")
public class BarnPagerProperties {

    public static final String DEFAULT_CURRENT_KEY = "_current";
    public static final String DEFAULT_COUNT_KEY = "_count";
    public static final String DEFAULT_PAGE_SIZE_KEY = "_pageSize";
    private String current = DEFAULT_CURRENT_KEY;
    private String pageSize = DEFAULT_COUNT_KEY;
    private String count = DEFAULT_PAGE_SIZE_KEY;
    /**
     * 添加分页数据的响应对象的类名
     *
     * @see ResponsePageAdvice
     */
    private String supportClass = null;

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getCurrent() {
        return current;
    }

    public void setCurrent(String current) {
        this.current = current;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public String getSupportClass() {
        return supportClass;
    }

    public void setSupportClass(String supportClass) {
        this.supportClass = supportClass;
    }
}
